package com.hx.exception.serv;

import java.util.Objects;

/**
 * @author minghuachen
 * @since 2024/1/25 14:19
 */
public class TestService {

    public String getUserInfo(String uid) {
        if (Objects.isNull(uid)) {
            throw new RuntimeException("uid 不能为空");
        }
        return "用户接口返回数据：" + uid;
    }


    public void logout(String uid) {
        if (Objects.isNull(uid)) {
            throw new RuntimeException("uid 不能为空");
        }
        System.out.println("用户退出：" + uid);
    }
}
